home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / stat.1 < prev    next >
Text File  |  1995-07-25  |  2KB  |  39 lines

  1. Usage:
  2. stat [-adhnor] [-m<mask>] [-c<char>] [-t<fmt>] [-f[bnpidluUgGsSNJamcoAMC]]
  3.      [file ...]
  4. n: Don't print stat field names.
  5. h: Print this help.
  6. r: stat filenames read from stdin, one per line, after any on command line.
  7. m: Logically AND file mode with octal integer <mask> before printing it.
  8.    When the mode is printed, at least as many characters as are given
  9.    in <mask> will be printed, with leading zeros if neccessary.
  10. c: Use <char> to separate each field from the next instead of a newline.
  11. d: All filenames that consist of digits are taken to be file descriptors
  12.    to be fstat()ed.  The file handle is printed instead of the link name.
  13. o: fstat() all open file descriptors after other filenames are processed.
  14. t: Use <format> as an strftime(S) format string to print file times
  15.    for A, M, and C field specifications.  The default is "%y/%m/%d %T".
  16. a: Print all fields in all formats.  Equivalent to -fbnpidluUgGsSNJamcoAMC.
  17. f: Select fields to print.  The default is nMidlugsJNamc.
  18.    Fields are printed in the order given.  The fields are:
  19.    n: name of the link used to access the file (not part of stat struct)
  20.    o: file mode, in octal
  21.    p: file permissions, in octal (equivalent to -fo -m7777)
  22.    b: file mode, symbolically.  The first character indicates the type of
  23.    the file (Regular, Directory, Character, Block, Pipe, Semaphore,
  24.    shared Memory, other Name file, or ?unknown); the next three tell
  25.    whether the setUid, setGid, and sTicky bits are set; and the last nine
  26.    tell whether Read, Write, & eXecute are set for user, group, and other.
  27.    i: inode number
  28.    d: id of device containing directory entry
  29.    l: number of links to file
  30.    u, g: file's user and group ownership, as integers
  31.    U, G: file's user and group as names if they have entries in /etc/passwd
  32.    and /etc/group respectively; else as integers.
  33.    s: size, in bytes (not printed for block, char, or name files).
  34.    J, N: Major & minor number (printed only for block, char & name files).
  35.    S: size, in blocks of size used by the filesystem the file resides on.
  36.    a, m, c: time of last access, modification, and creation, in seconds
  37.       since 00:00:00 GMT 1 Jan 1970
  38.    A, M, C: time of last access, modification, and creation, in local time.
  39.